<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateExpressCompany extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('express_company', function (Blueprint $table) {
            $table->id();
            $table->string('name')->comment('物流公司名称');
            $table->string('logo')->comment('物流公司logo');
            $table->string('url')->comment('物流公司网址');
            $table->integer('sort')->default(0)->comment('排序');
            $table->string('kdniao_no',20)->comment('快递鸟编码');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('express_company', function (Blueprint $table) {
            //
        });
    }
}
